package com.rem.springIocXml.auto;

import com.rem.springIocXml.entity.User;

/**
 * @author Rem
 * @date 2023-02-28
 */
public interface UserService {

    void saveUser(User user);
}

class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void saveUser(User user) {
        userDao.saveUser(user);
    }
}
